﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TotalCommander_v3
{
    public partial class frmDecryptOption : Form
    {
        public string sOutputDir = string.Empty;
        public frmDecryptOption()
        {
            InitializeComponent();
        }

        private void btnDecrypt_Click(object sender, EventArgs e)
        {
            sOutputDir = this.tbOutputName.Text;
            DialogResult = DialogResult.OK;
            this.Close();
        }

        private void frmDecryptOption_Load(object sender, EventArgs e)
        {
            this.tbOutputName.Text = sOutputDir;
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FolderBrowserDialog folder = new FolderBrowserDialog();
            if (folder.ShowDialog() == DialogResult.OK)
            {
                tbOutputName.Text = folder.SelectedPath.ToString();
            }
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
